import { createRouter, createWebHistory } from 'vue-router'


const routes = [
  {
    path: '/',
    redirect:'/home'
  },
  {
    path: '/home',
    // path: '/',
    name: 'home',    
    component:()=>import("../views/Home.vue")
  },
  {
    path: '/about',
    // path: '/',
    name: 'about',    
    component:()=>import("../views/About.vue")
  }
]


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes
})

export default router
